<?php
return array(
	'class' => 'EditAction',
	'cascade' => array('profile'),
	'formView' => array(
		'fields' => array(
			// guid不显示
			'baseInfo' => array(
				'id' => false,
				'company_id' => false,
				'create_time' => false,
				'worker_id' => array('dropDownList', Yii::app()->enum->options('worker.worker'),
					'visible' => 'Yii::app()->adminUser->role != AdminUser::ROLE_PROVIDER',
				)
			),
			'profile' => array(
				'id' => false,
				'shop_id' => false,
				'introduction' => array('class' => 'RichtextField', 'params' => array('htmlOptions'=>array('style'=>'width:500px;height:200px;'))),
			),
		)
	),

	'_import' => array(
		array('*', 'actions.edit//*'),
	),
);
